#pragma once
#include <iostream>

class Solver{

public:
    Solver();
    ~Solver();

    double solve(double left,double right,double range);

private:
    void get_cost(const double& x, double& cost);

};